import request from '@/utils/request'

// 查询用户矿机收益列表
export function listMUserMachineDetail(query) {
  return request({
    url: '/api/mUserMachineDetail/list',
    method: 'get',
    params: query
  })
}

// 查询用户矿机收益详细
export function getMUserMachineDetail(id) {
  return request({
    url: '/api/mUserMachineDetail/' + id,
    method: 'get'
  })
}

// 新增用户矿机收益
export function addMUserMachineDetail(data) {
  return request({
    url: '/api/mUserMachineDetail',
    method: 'post',
    data: data
  })
}

// 修改用户矿机收益
export function updateMUserMachineDetail(data) {
  return request({
    url: '/api/mUserMachineDetail',
    method: 'put',
    data: data
  })
}

// 删除用户矿机收益
export function delMUserMachineDetail(id) {
  return request({
    url: '/api/mUserMachineDetail/' + id,
    method: 'delete'
  })
}
